<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档</title>
		<link href="../css/bgcss.css"
			rel="stylesheet" type="text/css" />
<script type="text/javascript">
function iframeResizeHeight(frame_name,body_name,offset) {	
	parent.document.getElementById(frame_name).height=document.getElementById(body_name).offsetHeight+offset;
}

function Resize(){
	
 var frame_name="frame_content";
 var body_name="content"; 
 if(parent.document.getElementById(frame_name)){
  return iframeResizeHeight(frame_name,body_name,0);
 }
}

</script>
	</head>

	<body onload="Resize();">
<div id="content">
			<!-- 正文开始 -->
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#c9c9c9">	
						<tr>					
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">序号</span>
						</strong>
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">车牌号</span>
						</strong>
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">行驶统计</span>
						</strong>
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">油耗统计</span>
						</strong>
					</div>
				</td>		
				<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">花费统计</span>
						</strong>
					</div>								
				</td>
					<td height="22" bgcolor="#FFFFFF">
					<div align="center">
						<strong><span class="STYLE1">操作</span>
						</strong>
					</div>								
				
							</td>					
						</tr>
			
				<c:forEach items="${list}" var="item" varStatus="var">
							<tr>					
				 <td height="22" bgcolor="#FFFFFF">
				 <div align="center"><span class="STYLE3">${var.count }</span>
					</div>
				</td>
				 <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${item.car_no}</span>
						
					</div>
				</td>
				 <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${item.lastMilage-item.firstMilage}km</span>
						
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${item.firestOil-item.lastOil+item.sumOil}L</span>						
					</div>
				</td>
				<td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">￥${item.totalPay}元</span>						
					</div>
				</td>			
				 <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">
				<input type="button" value="公里查询" onclick="javascript:parent.location.href='<%=request.getContextPath()%>/background/car/query_carmilage.jsp?Car_Id=${item.car_Id}&Car_NO=${item.car_no}&time1=${bTime}&time2=${eTime}&Action_Id=90 target=_blank'"/>
				<input type="button" value="花费查询" onclick="javascript:parent.location.href='<%=request.getContextPath()%>/background/car/query_carpay.jsp?Car_Id=${item.car_Id}&Car_NO=${item.car_no}&time1=${bTime}&time2=${eTime}&Action_Id=905'" />
				</span>
					
					</div>								
				
							</td>							
						</tr>
						</c:forEach>
									
					</table>
				<!-- 正文结束 -->	
</div>
		
	</body>
</html>
